import QtQuick 2.15
import QtQuick.Controls 2.15
import './../../../controls'
//写入手环信息
Rectangle {
    anchors.fill: parent
    gradient: mainGradient

    Column{
        anchors.horizontalCenter: parent.horizontalCenter
        y:100
        spacing: 30
        Rectangle{
            width: 500
            height: 400
            Text {
                font.pixelSize: 40
//                font.bold: true
                color: '#333333'
                text: qsTr("请放置手环")
                anchors.centerIn: parent
                visible: false
            }
            Column{
                x:50
                y:30
                spacing: 10
                Text {
                    width: 120
                    color: '#333333'
                    text: qsTr("订单编号:")
                    Text {
                        color: '#333333'
                        text: 'SN202410710222'
                        anchors.left: parent.right
                        anchors.verticalCenter: parent.verticalCenter
                    }
                }
                Text {
                    width: 120
                    color: '#333333'
                    text: qsTr("用户ID:")
                    Text {
                        color: '#333333'
                        text: '01'
                        anchors.left: parent.right
                        anchors.verticalCenter: parent.verticalCenter
                    }
                }
                Text {
                    width: 120
                    color: '#333333'
                    text: qsTr("用户昵称:")
                    Text {
                        color: '#333333'
                        text: 'simple'
                        anchors.left: parent.right
                        anchors.verticalCenter: parent.verticalCenter
                    }
                }
                Text {
                    width: 120
                    color: '#333333'
                    text: qsTr("手环编号:")
                    Text {
                        color: '#333333'
                        text: 'ST001001'
                        anchors.left: parent.right
                        anchors.verticalCenter: parent.verticalCenter
                    }
                }
            }
        }
        Button{
            width: 160
            height: 40
            anchors.horizontalCenter: parent.horizontalCenter
            background: Rectangle{
                radius: 10
                color: '#EA9508'
                Text {
                    anchors.centerIn: parent
                    color: '#ffffff'
                    text: qsTr("确定置换")
                }
            }
            onClicked: {
                CGlobal.showMessage(window,qsTr('写入完成'))
            }
        }
    }

}
